package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.CaseInfo;
import cn.wolfcode.crm.domain.CompensationInfo;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface CompensationInfoMapper {
    int deleteByPrimaryKey(Long id);

    int insert(CompensationInfo record);

    CompensationInfo selectByPrimaryKey(Long id);

    List<CompensationInfo> selectAll();

    int updateByPrimaryKey(CompensationInfo record);

    // 高级 查询
    int queryCount(QueryObject qo);
    List<CompensationInfo> queryList(QueryObject qo);

    void deleteByCaseInfoId(Long caseInfoId);

    Long selectInsureInfoIdByCaseInfoId(Long caseInfoId);

    CaseInfo selectCaseInfoById(Long id);
}